package kpi.java_training.testing.user;

import kpi.java_training.testing.userInterface.Input;
import kpi.java_training.testing.userInterface.Output;

/**
 * class for determining user
 */
public class User {
    private String userName;
    private String userPassword;
    private String userType;


    public User(String name, String password, String type) {
        this.userName = name;
        this.userPassword = password;
        this.userType = type;
    }

    public void inputUserName() {
        Input input = new Input();
        Output output = new Output();

        output.showString("Input user name:");
        userName = input.getString();
    }

    public String getName() {
        return userName;
    }


    public void inputUserPassword() {
        Input input = new Input();
        Output output = new Output();

        output.showString("Input user password:");
        userPassword = input.getString();
    }

    public String getPassword() {
        return userPassword;
    }


    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }
}
